# -*- coding: utf-8 -*-


def print_directory_contents(sPath):
    import os
    for c in os.listdir(sPath):
        cpath = os.path.join(sPath, c)
        if os.path.isdir(cpath):
            print_directory_contents(cpath)
        else:
            print(cpath)


print_directory_contents('D:\python\python面试宝典\第二章 Python基础\基础语法')
